package com.example.es.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.time.LocalDateTime;

/**
 * 社保卡表
 *
 * @author wangjf
 * @date 2020-03-27 15:49:17
 */
@Data
@Document(indexName = "dev", type = "card", replicas = 0)
public class CardES {

    /**
     * 主键
     */
    private Long id;
    /**
     * 名称
     */
    @Field(type = FieldType.Keyword)
    private String name;
    /**
     * 证件号码
     */
    @Field(type = FieldType.Keyword)
    private String cardNo;
    /**
     * 乡镇
     */
    @Field(type = FieldType.Text)
    private String villages;
    /**
     * 社区
     */
    @Field(type = FieldType.Text)
    private String community;
    /**
     * 领取地址
     */
    @Field(type = FieldType.Text)
    private String receiveAddress;
    /**
     * 电话号码
     */
    @Field(type = FieldType.Text)
    private String phone;
    /**
     * 箱号
     */
    @Field(type = FieldType.Text)
    private String boxNo;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 最后变更时间
     */
    private LocalDateTime updateTime;

}
